package com.finley.flowabledemo.design.decoration;


/**
 * @description:
 * @author: xianfei.chao
 * @date 2025/6/2 11:15
 * @version: 1.0
 */
public class TestMain {

    public static void main(String[] args) {
        Person person = new Person();
        person.setName("张三");
        LaBaPantsCompont laBaPantsCompont = new LaBaPantsCompont();
        ShirtCompont shirtCompont = new ShirtCompont();
        SuitCompont suitCompont = new SuitCompont();
        ShoesCompont shoesCompont = new ShoesCompont();
        TieCompont tieCompont = new TieCompont();
        laBaPantsCompont.setDecorator(person);
        shirtCompont.setDecorator(laBaPantsCompont);
        suitCompont.setDecorator(shirtCompont);
        shoesCompont.setDecorator(suitCompont);
        tieCompont.setDecorator(shoesCompont);
        tieCompont.show();
    }
}
